package com.imooc.order.utils;
import com.imooc.order.vo.ResultVO;
import lombok.Data;

/**
 * Description: 返回结果工具类
 * Project: order <br />
 * ClassName: ResultVOUtil <br />
 * Copyright: Copyright (c) 2018 deshang<br />
 *
 * @author Wang Shaopeng
 * @date 2018/12/8 22:41
 * @modifier
 * @modifyContent
 */
@Data
public class ResultVOUtil {

    public static ResultVO success(Object object) {
        ResultVO resultVO= new ResultVO();
        resultVO.setCode(0);
        resultVO.setMsg("成功");
        resultVO.setData(object);
        return resultVO;
    }
}
